﻿<UserControl
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:OMANE.Modules.PMT" x:Class="ViewNewPMTWizardTblesFlux" 
             mc:Ignorable="d">
    <UserControl.Resources>
        <local:TableStateToIconConverter x:Key="TableStateToIconConverter" />
        <local:BoolToVisibilityInvConverter x:Key="BoolToVisibilityInvConverter"/>
		<DataTemplate DataType="{x:Type local:ViewModelFichierPMT}">
        	<local:ViewIFichierPMT/>
        </DataTemplate>
		<Style x:Key="ListBoxItemStyleTblesFlux" TargetType="{x:Type ListBoxItem}">
			<Setter Property="Background" Value="Transparent"/>
			<Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
			<Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
			<Setter Property="Padding" Value="2,0,0,0"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type ListBoxItem}">
						<Border x:Name="Bd" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="true">
							<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
						</Border>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>

    </UserControl.Resources>
	<d:UserControl.DataContext>
		<local:ViewModelNewPMTWizardPageTblesFlux/>
	</d:UserControl.DataContext>
    <Grid Margin="10">
    	<ListBox ItemsSource="{Binding ListViewModelsTablesFlux}" HorizontalContentAlignment="Stretch" ItemContainerStyle="{DynamicResource ListBoxItemStyleTblesFlux}" BorderThickness="0"/>
    </Grid>
</UserControl>
